package com.fang.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author Fang Ruichuan
 * @since 2022-08-27
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="SysRole对象", description="")
public class SysRole extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private String name;

    private String code;

    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    private List<Long> menuIds = new LinkedList<>();
}
